/**
 * 
 */
package org.extdev.connection.ltr;

import org.extdev.connection.Connection;
import org.extdev.libraries.ltr.LTR11APILibraryFacade;
import org.extdev.libraries.ltr.LTRException;

/**
 * @author LAP
 *
 */
public abstract class LTR11LibConnection implements Connection {
	protected LTR11APILibraryFacade facade;

	public LTR11LibConnection(LTR11APILibraryFacade facade) throws LTRException {
		this.facade = facade;
	}
	
	@Override
	public void connect() throws Exception {
		facade.openLTR11();
	}

	@Override
	public void disconnect() throws Exception {
		facade.closeLTR11();
	}

	@Override
	public boolean isConnected() {
		return facade.isOpened();
	}
}
